package com.zdft.promotion.receipts.api;

import com.zdft.esb.annotation.EsbClass;
import com.zdft.esb.annotation.EsbMethod;
import com.zdft.promotion.RpcServiceException;
import com.zdft.promotion.receipts.dto.ItemBatchPriceDto;
import com.zdft.promotion.receipts.dto.ItemBatchPriceReqDto;
import com.zdft.promotion.receipts.dto.ReceiptsDto;

import java.util.List;

@EsbClass("com.zdft.promotion.receipts.api.IReceiptsRpc")
public interface IReceiptsRpc {

	/**
	 * 创建采购入库单
	 * @return
	 */
	@EsbMethod(value = "createReceipts")
	void createReceipts(ReceiptsDto dto) throws RpcServiceException;

	/**
	 * 取商品批次价格
	 * @param reqDto
	 * @return
	 * @throws RpcServiceException
	 */
	@EsbMethod(value = "getItemBatchPrice")
	ItemBatchPriceDto getItemBatchPrice(ItemBatchPriceReqDto reqDto) throws RpcServiceException;

	/**
	 * 取商品批次价格列表
	 * @param list
	 * @return
	 * @throws RpcServiceException
	 */
	@EsbMethod(value = "getItemBatchPriceList")
	List<ItemBatchPriceDto> getItemBatchPriceList(List<ItemBatchPriceReqDto> list) throws RpcServiceException;
}
